package com.yyw.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yyw.bean.Notice;

@Mapper
public interface NoticeDao {

    /**
     * 获取公告，按时间降序
     *
     * @return
     */
    List<Notice> getNotices(@Param("classid") Long classid);

    int saveNotice(Notice notice);

    int updateNotice(Notice notice);

    int deleteNotice(@Param("id") Long id);

    Notice getNoticeById(@Param("id") Long id);
}
